/*
 *

 函数指针数组的应用

20 1
21
19
20
20

 */
#include<stdio.h>

int add(int a, int b){return a+b;}
int sub(int a, int b){return a-b;}
int mul(int a, int b){return a*b;}
int div(int a, int b){return a/b;}
int main(){
	int m, n;
	scanf("%d%d",&m, &n);

	int (*p[4])(int,int);
	p[0] = add;
	p[1] = sub;
	p[2] = mul;
	p[3] = div;

	for(int i = 0; i < 4 ; i++){
		printf("%d\n",p[i](m,n));
	}

	return 0;
}
